from stark.service.v1 import site
from web import models
from web.views.depart import DepartHandler
from web.views.userinfo import UserInfoHandler
from web.views.ip_scope import IpScopeHandler
from web.views.ip_subnet import IpSubnetHandler
from web.views.ip_subnet_plan import IpSubnetPlanHandler
from web.views.ip_subnet_distribute import IpSubnetDistributeHandler
from web.views.ip_subnet_record import IpSubnetRecordHandler
from web.views.ip_subnet_reocrd_query import IpSubnetRecordQueryHandler
from web.views.hosts import HostsHandler
from web.views.host_record import HostRecordHandler
from web.views.host_record_query import HostRecordQueryHandler
from web.views.host_subnet import HostSubnetHandler
from web.views.service_type import ServiceTypeHandler
from web.views.asset_type import AssetTypeHandler
site.register(models.Depart, DepartHandler)
site.register(models.UserInfo, UserInfoHandler)
site.register(models.IpScope, IpScopeHandler)
site.register(models.IpSubnet, IpSubnetHandler)
site.register(models.IpSubnet, IpSubnetPlanHandler, prev='plan')
site.register(models.IpSubnet, IpSubnetDistributeHandler, prev='distribute')
site.register(models.IpSubnetRecord, IpSubnetRecordHandler)
site.register(models.IpSubnetRecord, IpSubnetRecordQueryHandler, prev='query')
site.register(models.Hosts, HostsHandler)
site.register(models.HostRecord, HostRecordHandler)
site.register(models.HostRecord, HostRecordQueryHandler, prev='query')
site.register(models.Hosts, HostSubnetHandler, prev='subnet')
site.register(models.ServiceType, ServiceTypeHandler)
site.register(models.AssetType, AssetTypeHandler)
